package com.d0303;

public class Person {
    int age;
    String name;

    public void changeAge(int page){
        age = page;
    }
    public void showAge(){
        System.out.println(age);
    }

    public void changeAgrandshouAge(int page){
        changeAge(page);
        showAge();
    }
    public void showName(){
        System.out.println(name);
    }
    public void changeName(String na){
        name = na;
    }
    public void changeNameandshowName(String na){
        changeName(na);
        showName();
    }
    public void show(){
        String companyName = "Chinasofti";
        System.out.println(companyName);
    }

    public static void main(String[] args) {
        Person person = new Person();
        //person.name="jack";
        //person.changeAge(22);
        // person.showAge();
        //System.out.println(person.name);
        person.changeAgrandshouAge(23);
        person.changeNameandshowName("Jack");
    }
}
